Integrating an XForm with WS-AppServer |
|
Before you begin this task:
In order to develop applications in Process Platform XForms using the Web services available in the Process Platform WS-AppServer, ensure that the corresponding Web service operations are available in the LDAP.
- Open the XForm in the XForms Designer.
- Select the required Web service operation in the Insert tab and drag it to the XForms Designer. Alternately, right-click the Designer Area, and select Insert Web Service to view available Web services and add the required one to the XForm. The Generate Input and Output UI dialog box appears.
- Make appropriate modifications and click OK:
- Select a service from the Services drop-down list.
- Select a port from the Ports drop-down list.
- Select the action to perform from the Operations drop-down list.
- Select Generate UI for Input message to generate the input UI.
- Select Generate UI for Output message to generate the output UI. The UI is displayed in the Designer Area.
- Select Advanced in the toolbar to view advanced options.
- Click (Manage Models) in the toolbar. The Manage Models window appears.
- Select the model and click . Alternately, click the model name. The Model Properties dialog box appears.
- Select the WS-AppServer Integration check box. The WS-AppServer tab appears.
- Make appropriate modifications in the WS-AppServer tab and click OK:
- Check Apply Access Control to enable, disable, hide, or display controls in an XForm based on the business logic available in the WS-AppServer.
- Check Initialization Required to provide default values for controls in the XForm when a new record is added to it.
- Check Constraint Validation to enable server-side validation of data that is displayed in the XForm.
- Select an option from the Before Validation drop-down list to specify the Web service operation to be executed before the validate request is sent to the WS-AppServer.
- Select an option from the After Validation drop-down list to specify the Web service operation to be executed after the validate request is sent to the WS-AppServer.
- Double click a control on the XForm to define its integration properties. The <control> window appears.
Note:
You can integrate only the Input, Password, Textarea, Check, and Select controls. - Select the model in the Model field of the <control> window. The WS-AppServer Properties pane appears.
- Click to expand the WS-AppServer Properties pane and make appropriate modifications:
- Select Constraint Validation on Change to enable validation of changes made to specific controls on the XForm.
- Select Never, Always, or Once from the Initialize Value Sets drop-down list to specify how to prefill the Select control with content, using the application logic.
Note:
- The Initialize Value Sets option is available only for the Select control. For a Select control, the request to retrieve data is sent only when the control is highlighted and only if the data node exists.
- The qValues attribute is used to initialize value sets in WS-AppServer for Select controls.
- Click .
The changes made to the XForm are saved and the XForm is integrated with the WS-AppServer.